<?php

include_once("core/controller.php");
include_once("core/versionHandler.php");

/**
 * @copyright inovia
 * @package oolime_manager 
 *
 */  
class homeUpdates extends Controller{

  public function isLegitimate(){
    
    return true;
  }
  
  public function actions(){
  
    $versionH = new VersionHandler("");
    $this->response->add($versionH->getVersionList());
    $this->response->add($versionH->getMyVersion());
   
   
    $dateNode = $this->response->doc->createElement("date");
    $dateNode->appendChild($this->response->doc->createTextNode(date("d/m/Y G:i")));
    $this->response->add($dateNode);  
   
    $moduleH = new VersionHandler("resources/packages/modules/mod_*");
    $this->response->add($moduleH->getModList());
    $this->response->setXSLT("views/manager/maj.xsl");
  }
  
  public function defaultActions(){
    if($this->debugController) echo "<br/> - Controller LOG: DEFAULTACTION";
    
    $this->response->setXSLT("views/login.xsl");
  }



}

?>
